package controller;

import android.util.Log;
import android.view.SurfaceHolder;
import model.KapstokKlasse;
import view.Scanner;

public class SystemController 
{
	private static final String TAG = SystemController.class.getSimpleName();
	
	KapstokKlasse _kapstok;
	
	public SystemController(Scanner observer)
	{
		_kapstok = new KapstokKlasse();
		
		_kapstok.setObserver(observer);
	}
	
	public void startCamera(SurfaceHolder holder)
	{
		Log.d(TAG, String.format("startPreview()"));
		_kapstok.startCamera(holder);
	}
	
	public void stopCamera()
	{
		_kapstok.stopCamera();
	}

	public void resumeCamera() 
	{
		_kapstok.resumeCamera();
	}
	
}
